home *** CD-ROM | disk | FTP | other *** search
- Path: gryphon.phoenix.net!usenet
- From: brucew@phoenix.net (Bruce Wedding)
- Newsgroups: comp.lang.c
- Subject: Re: Converting Strings to Upper Case
- Date: Wed, 27 Mar 1996 03:46:02 GMT
- Organization: BranPaul Systems
- Message-ID: <4jadro$a93@gryphon.phoenix.net>
- References: <4ifra6$52i@scipio.cyberstore.ca> <827087843snz@genesis.demon.co.uk> <31582859.3922@flash.net>
- NNTP-Posting-Host: dial151.phoenix.net
- X-Newsreader: Moe's Newsreader
-
- In comp.lang.c
- Quadra-Tech <quadra@flash.net> wrote:
-
- >Try this function and see if it works for you. Good luck.
-
- He'll need it with this code :)
-
- >char string[] = "This is a String";
-
-
- >void char fnReverse(char letter)
- Let's see, does it return a char or void or a void char, and why
- do you pass letter to it and never use it. And why do you define
- ndx and never use it? And where do you define n? And why is a
- general purpose function written to access a global instead of
- passing the string to it? And where is your prototype for
- tolower, toupper and isupper?
-
- > int ndx;
- >
- > {
- > for (n = 0; string[n] != 0; n++)
- > {
- > if (isupper(string[n]) == 0)
- > {
- > string[n] = tolower(string[n]);
- > continue;
- > }
- >
- > string[n] = toupper(string[n]);
- > }
-
-
-
-